import { createSSRApp } from "vue";
import App from "./App.vue";

// 仅在 H5 平台引入 CSS reset，保证一致的样式基线
// #ifdef H5
import "@unocss/reset/tailwind.css";
// #endif

// 所有平台都引入 UnoCSS 生成的样式
import "uno.css";

import { setupStore } from "./store";

export function createApp() {
  const app = createSSRApp(App);
  // 安装 Pinia
  setupStore(app);
  return {
    app,
  };
}
